<%@ page import="java.io.File" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.security.ProtectionDomain" %>
<%@ page import="java.security.CodeSource" %>
<%@ page import="java.net.URL" %>
<%@ page import="java.net.URLConnection" %>
<%@ page import="battleship.CacheFilter" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="et">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Laevade pommitamine</title>
    <%--<link rel="stylesheet" type="text/css" href="main.css" />--%>
    <%--<link rel="stylesheet" type="text/css" href="login.css" />--%>
    <%--<script type="text/javascript" src="jquery-1.7.1.js"></script>--%>
    <%--<script type="text/javascript" src="facebook.js"></script>--%>
    <%--<script type="text/javascript" src="login.js"></script>--%>
    <%
        final String[] resources = {"main.css", "login.css"};
        ServletContext context = session.getServletContext();
        
        for (String resource : resources) {
            out.write(CacheFilter.getResource(context, resource));
        }
    %>
</head>
<body>
    <div id="fb-root">

    </div>
    <div id="content">
        <div id="title_area">
            <h1 id="title_header">Laevade pommitamine</h1>
        </div>
        <div id="center_area">
            <div id="login">
                <div class="enterUsername">
                    <h2>Tere tulemast laevade pommitamise mängu!</h2>
                    <%--<form id="formUsername" action="sendUsername">--%>
                        <%--<h4>Sisesta oma kasutajanimi:</h4>--%>
                        <%--<input id="usernameField" type="text" name="username" />--%>

						<a href="https://www.facebook.com/dialog/oauth?client_id=${FBAppID}&redirect_uri=${FBRedirect}&state=${FBState}">Logi sisse FB-ga</a>

                       
                        <br /><br />
                        <%--<input type="submit" value="Sisene" class="button submitUsername" />--%>
                    <%--</form>--%>
                </div>
            </div>
        </div>
    </div>
    <div id="footer">
    </div>
</body>
</html>